<script setup lang="ts">
import { storeToRefs } from 'pinia'
import { useOrderStore } from '@/store/modules/orderStore'
const orderStore = useOrderStore()
const { userInfo_plus } = storeToRefs(orderStore)
</script>

<template>
  <el-card shadow="never">
    <template #header>
      <div>
        <span>实名信息</span>
      </div>
    </template>
    <el-alert
      title="完成实名认证后才能添加就诊人，正常进行挂号，为了不影响后续步骤，建议提前实名认证。"
      type="info"
      center
      show-icon
      :closable="false"
    />
    <el-descriptions border :column="1">
      <el-descriptions-item label-align="center" :width="1" label="用户姓名">{{ userInfo_plus.name }}</el-descriptions-item>
      <el-descriptions-item label-align="center" :width="1" label="证件类型">
        {{ userInfo_plus.certificatesType == '10' ? '身份证' : userInfo_plus.certificatesType === '20' ? '户口本' : '未知' }}
      </el-descriptions-item>
      <el-descriptions-item label-align="center" :width="1" label="证件号码">{{ userInfo_plus.certificatesNo }}</el-descriptions-item>
    </el-descriptions>
  </el-card>
</template>

<style scoped></style>
